package com.sansi.bleFloodlight.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sansi.bleFloodlight.R;

public class HomeGroupAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public HomeGroupAdapter() {
        super(R.layout.layout_item_home_group);
    }

    @Override
    protected void convert(BaseViewHolder helper, String myDevice) {
        if(helper.getLayoutPosition()==0){
            helper.setImageResource(R.id.iv_icon,R.drawable.group_all);
        }else{
            helper.setImageResource(R.id.iv_icon,R.drawable.groupicon);
        }
    }
}
